package com.avengers.common.bean;

/**
 * @author yu.wang
 * @since 2019-08-10 11:24
 **/
public class ApiResponse<Data> {
    /**
     * 返回码
     **/
    private Integer code;
    /**
     * 返回消息
     **/
    private String remark;
    /**
     * 请求序列号
     */
    private Long timestamp;
    /**
     * 返回数据
     */
    private Data data;

    public ApiResponse() {
    }

    public ApiResponse(Integer code, String msg) {
        this.code = code;
        this.remark = msg;
    }

    public Integer getCode() {
        return code;
    }

    public void setCode(Integer code) {
        this.code = code;
    }

    public String getRemark() {
        return remark;
    }

    public void setRemark(String remark) {
        this.remark = remark;
    }

    public Long getTimestamp() {
        return timestamp;
    }

    public void setTimestamp(Long timestamp) {
        this.timestamp = timestamp;
    }

    public Data getData() {
        return data;
    }

    public void setData(Data data) {
        this.data = data;
    }
}
